package com.pureut.order.controller;

import com.pureut.order.dto.WorkbenchManagerDataDto;
import com.pureut.order.service.WorkbenchService;
import com.sale.common.core.domain.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 首页工作台接口
 */
@RestController
@RequestMapping("/workbench")
public class WorkbenchController {

    @Resource
    WorkbenchService workbenchService;

    /**
     * 首页工作台(管理)上方数据接口
     */
    @GetMapping("/workbenchManagerData")
    public R<WorkbenchManagerDataDto> workbenchManagerData() {
        return R.ok(workbenchService.getWorkbenchManagerData());
    }
}
